package com.cyj.dream.admin.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 系统用户信息vo
 * @BelongsProject: dream-DreamChardonnay
 * @BelongsPackage: com.dream.DreamChardonnay.model.vo
 * @Author: ChenYongJia
 * @CreateTime: 2021-04-17 10:42
 * @Email: chen87647213@163.com
 * @Version: 1.0
 */
@Data
@ApiModel(value = "系统用户信息vo", description = "SysUserVo 系统用户信息vo")
public class SysUserVo {

    @ApiModelProperty(value = "用户id")
    private Long sysUserId;

    @ApiModelProperty(value = "用户名称")
    private String sysUsername;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "用户生日")
    private Date sysUserBirthday;

    @ApiModelProperty(value = "用户手机号")
    private String sysUserPhone;

    @ApiModelProperty(value = "用户简介描述")
    private String sysUserRemark;

    @ApiModelProperty(value = "用户性别")
    private Integer sysUserSex;

    @ApiModelProperty(value = "用户邮箱")
    private String sysUserEmail;

    @ApiModelProperty(value = "用户是否锁定（0 未锁定 1 已锁定）")
    private Integer sysUserIsLock;

    @ApiModelProperty(value = "用户是否删除（0 未删除 1 已删除）")
    private Integer sysUserDelFlag;

    @ApiModelProperty(value = "用户地址")
    private String sysUserAddress;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updaterTime;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "用户最后一次登录时间")
    private Date sysUserLastLoginTime;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "用户锁定时间")
    private Date sysUserLockTime;

    @ApiModelProperty(value = "创建人")
    private Long createUserId;

    @ApiModelProperty(value = "修改人")
    private Long updateUserId;


}
